package com.kunzai.applicationrun;

import com.kunzai.config.StudentConfig;
import com.kunzai.server.pojo.Student;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestApplication {
    public static void main(String[] args) {
        //IOC容器
        ApplicationContext applicationContext = new AnnotationConfigApplicationContext(StudentConfig.class);
        Student bean = applicationContext.getBean(Student.class);
        System.out.println(bean);
    }
}
